﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeDuce.IDAL;
using System.Data;

namespace SeDuce.BLL
{
    public class NewsTypeBLL
    {
        private static readonly INewsTypeDAL dal = SeDuce.DALFactory.DataAccess.CreateNewsTypeDAL();

        public DataTable GetNewsType()
        {
            return dal.GetNewsType();
        }

        public bool UpdateNewsType(SeDuce.Model.NewsType newsType)
        {
            return dal.UpdateNewsType(newsType);
        }

        public bool InsertNewsType(SeDuce.Model.NewsType newsType)
        {
            return dal.InsertNewsType(newsType);
        }

        public bool DeleteNewsType(int id)
        {
            return dal.DeleteNewsType(id);
        }
    }
}
